<template>
  <ul class="list">
    <li v-for="(item, i) in list" :key="i">
      <slot name="default" v-bind:index="i" :item="item"></slot>
    </li>
  </ul>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default: () => [],
    },
  },
};
</script>

<style scoped>
.list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.list li {
  background-color: bisque;
  padding: 6px 12px;
  margin-bottom: 6px;
}
</style>
